package cn.edu.java.collection;

import org.omg.CORBA.StructMember;

import java.util.ArrayList;
import java.util.function.Function;

public class Stream {
    public static void main(String[] args) {
        ArrayList<String> strings = new ArrayList<>();
        for (int i = 0; i < 100; i++) {
            strings.add(i + "_word");
        }

        strings
                .stream()
                .map(String::length)
                .forEach(System.out::println);
    }
}
